﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace PartitionsCodegen
{
    static class Program
    {

       static MainForm mf;
       static Generator gen = null;

        [STAThread]
        static void Main()
        {
         
            gen = new Generator();
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            mf = new MainForm();
            Application.Run(mf);
        }

        public static int getCopies() { return mf.getCopies(); }
        public static bool getToTheRight() { return mf.getToTheRight(); }
        public static float[] getDepths() { return mf.getDepths(); }
        public static decimal getOffsetX() { return mf.getOffsetX(); }
        public static decimal getOffsetY() { return mf.getOffsetY(); }
        public static string getCode() { return mf.getCode(); }
        public static bool getLiftBetweenZs() { return mf.getLiftBetweenZs(); }
        public static float getZForLifts() { return mf.getZForLifts(); }
        public static int getDwellTimeZ() { return mf.getDwellTimeZ(); }
        public static int getDwellTimeCopies() { return mf.getDwellTimeCopies(); }
        public static int getBoardLimitX() { return mf.getBoardLimitX(); }
        public static int getBoardLimitY() { return mf.getBoardLimitY(); }
        public static void errorAlert(string error) { mf.errorAlert(error); }


        public static bool generate(bool clipboard)
        {
            return gen.generate(clipboard);
        }
    }
}
